﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Admin/Views/Shared/TemplateAdmin.Master" Inherits="System.Web.Mvc.ViewPage<MvcVehicleInsurance.Models.VehicleInformation>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Create
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    
    <h2 class="ico_mug">Create Vehicle</h2>

    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>

        <fieldset>
            <legend>Fields</legend>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.vehicleID) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.vehicleID) %>
                <%: Html.ValidationMessageFor(model => model.vehicleID) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.vehicleName) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.vehicleName) %>
                <%: Html.ValidationMessageFor(model => model.vehicleName) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.vehicleisOwnerName) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.vehicleisOwnerName) %>
                <%: Html.ValidationMessageFor(model => model.vehicleisOwnerName) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.vehicleModel) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.vehicleModel) %>
                <%: Html.ValidationMessageFor(model => model.vehicleModel) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.vehicleVersion) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.vehicleVersion) %>
                <%: Html.ValidationMessageFor(model => model.vehicleVersion) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.vehicleRate) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.vehicleRate) %>
                <%: Html.ValidationMessageFor(model => model.vehicleRate) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.vehicleBodyNumber) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.vehicleBodyNumber) %>
                <%: Html.ValidationMessageFor(model => model.vehicleBodyNumber) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.vehicleEngineNumber) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.vehicleEngineNumber) %>
                <%: Html.ValidationMessageFor(model => model.vehicleEngineNumber) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.vehicleNumber) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.vehicleNumber) %>
                <%: Html.ValidationMessageFor(model => model.vehicleNumber) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.vehicleWarranty) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.vehicleWarranty) %>
                <%: Html.ValidationMessageFor(model => model.vehicleWarranty) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.ManufacturerId) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.ManufacturerId) %>
                <%: Html.ValidationMessageFor(model => model.ManufacturerId) %>
            </div>
            
            <p>
                <input type="submit" value="Create" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%: Html.ActionLink("Back to List", "Index") %>
    </div>

</asp:Content>

